package com.yaowk.system.validator;

import com.jfinal.core.Controller;
import com.yaowk.common.kit.Constant;
import com.yaowk.common.kit.I18nKit;
import com.yaowk.common.validator.BaseValidator;

/**
 * Created by yaowk on 2017/4/18.
 */
public class AddPlatformValidator extends BaseValidator {
    @Override
    protected void validate(Controller c) {
        String error_msg = I18nKit.get("param_error", Constant.SYSTEM_MODULE, c);
        validateRequiredString("name", ERROR_CODE, error_msg);
//        validateInteger("sort", ERROR_CODE, error_msg);
    }
}
